<?php
 
// No direct access
 
defined('_JEXEC') or die('Restricted access'); ?>
<h1><?php echo $this->rsc->lang_title; ?></h1>
<br/>
<br/>
<i><?php echo $this->rsc->lang_text; ?></i>
<br/>
<br/>
<br/>
<p align="right"><a href="index.php?option=com_hizkuntzak">&laquo; <?php print($this->rsc->volver)?></a></p>
<br/>
<form action="index.php?option=com_hizkuntzak" enctype="multipart/form-data" class="formular" method="post" id="hizkuntzakForm" name="hizkuntzakForm">
	<input type="hidden" name="task" value="addLang"/>
	<input type="hidden" name="hlang" value="<?php echo($this->lang->iso_code); ?>"/>
	<table>
		<tr>
			<td><?php echo $this->rsc->lang_code; ?>: </td>
			<td>
				<?php if($this->lang->iso_code != null){
					print("<input type='text' disabled='disabled' id='lang_code' name='lang_code' value='".$this->lang->iso_code."' size='8'/>");
				}
				else{
					print("<input type='text' class='validate[required]' id='lang_code' name='lang_code' size='8'/>");
				}?>
			</td>
		</tr>
		<tr>
			<td><?php echo $this->rsc->lang_lang_eu; ?>: </td>
			<td><input type="text" class='validate[required]' id="lang_eu" name="lang_eu" value="<?php echo($this->lang->name_eu); ?>"/></td>
		</tr>
		<tr>
			<td><?php echo $this->rsc->lang_lang_es; ?>: </td>
			<td><input type="text" class='validate[required]' id="lang_es" name="lang_es" value="<?php echo($this->lang->name_es); ?>"/></td>
		</tr> 
		<tr>
			<td><?php echo $this->rsc->lang_map;?>: </td>
			<td>
				<input type='file' name='lang_map' value='<?php echo($this->lang->mapPath);?>'/>
			<?php 
				if($this->lang->mapPath != "" || $this->lang->mapPath != null){
				echo("<i>".$this->rsc->video_already."</i>");
			}
			?>
			<input type='hidden' name='lang_map-vo' value='<?php echo($this->lang->mapPath);?>'/>
			</td>
		</tr>
		<tr>
			<td><?php echo $this->rsc->lang_alf;?>: </td>
			<td>
				<input type='file' name='lang_alf' value='<?php echo($this->lang->alfPath);?>'/>
			<?php 
				if($this->lang->alfPath != "" || $this->lang->alfPath != null){
				echo("<i>".$this->rsc->video_already."</i>");
			}
			?>
			<input type='hidden' name='lang_alf-vo' value='<?php echo($this->lang->alfPath);?>'/>
			</td>
		</tr>
		 <tr>
			<td><?php echo $this->rsc->lang_pdf;?>: </td>
			<td>
				<input type='file' name='info' value='<?php echo($this->lang->pdfPath);?>'/>
			<?php 
				if($this->lang->pdfPath != "" || $this->lang->pdfPath != null){
				echo("<i>".$this->rsc->video_already."</i>");
			}
			?>
			<input type='hidden' name='info-vo' value='<?php echo($this->lang->pdfPath);?>'/>
			</td>
		</tr>
		<tr>
			<td><?php echo $this->rsc->lang_rsc;?>: </td>
			<td>
				<input type='file' name='rsc' value='<?php echo($this->lang->rscPath);?>'/>
			<?php 
				if($this->lang->rscPath != "" || $this->lang->rscPath != null){
				echo("<i>".$this->rsc->video_already."</i>");
			}
			?>
			<input type='hidden' name='rsc-vo' value='<?php echo($this->lang->rscPath);?>'/>
			</td>
		</tr>
		<tr>
			<td><?php echo $this->rsc->lang_audio;?>: </td>
			<td>
				<input type='file' name='audio' value='<?php echo($this->lang->audioPath);?>'/>
			<?php 
				if($this->lang->audioPath != "" || $this->lang->audioPath != null){
				echo("<i>".$this->rsc->video_already."</i>");
			}
			?>
			<input type='hidden' name='audio-vo' value='<?php echo($this->lang->audioPath);?>'/>
			</td>
		</tr>
		<tr>
			<td><?php echo $this->rsc->active; ?>: </td>
			<td>
				<?php 
					if($this->lang->active){
						print("<input type='checkbox' checked='checked' name='active'/>");
					}
					else{
						print("<input type='checkbox' name='active'/>");
					}
				?>
			</td>
		</tr>
	</table>
	<br/>
	<input type="button" id="submitHizkuntzakFormButton" value="<?php echo $this->rsc->save_changes; ?>" class="ui-button ui-widget ui-state-default ui-corner-all" role="button" aria-disabled="false">
	<br/>
<p align="right"><a href="index.php?option=com_hizkuntzak">&laquo; <?php print($this->rsc->volver)?></a></p>
<br/>
</form>

